package com.happy.xiao.consumer.callback;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@ComponentScan(basePackages = {"com.happy.xiao.common", "com.happy.xiao.consumer.callback"})
public class CallbackApp extends SpringBootServletInitializer {

    //不使用spring boot内嵌tomcat启动方式
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CallbackApp.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(CallbackApp.class, args);
    }
}